package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.BACKShelfBean;

import java.util.List;


public class ItemShelfAdapter extends BaseQuickAdapter<BACKShelfBean.TESTLOTSDTO , BaseViewHolder> {
    public ItemShelfAdapter(@Nullable List<BACKShelfBean.TESTLOTSDTO> data) {
        super(R.layout.adapter_itemshelf, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BACKShelfBean.TESTLOTSDTO item) {
        helper.setText(R.id.tvPosition,String.valueOf(helper.getAdapterPosition() + 1));
        helper.setText(R.id.tvLotId,item.getLOTID());
        helper.setText(R.id.tvMainQty,String.valueOf(item.getMAINQTY()));
        helper.setText(R.id.tvStepName,item.getUDF().getRESERVED6());
        helper.setText(R.id.tvSubstrateId1,item.getSUBSTRATEID1());
    }
}
